# -*-coding:utf-8-*-

import hashlib

PROTOCOL = 'http'
HOST = 'localhost'
PORT = 18600
# HOST = 'iot1.hifocus.top'
# PORT = 80

USERNAME = '13000000000'
PASSWORD = hashlib.md5('sagitar').hexdigest()

# TEST_APP_KEY = '403DB206089258FBB529B861AB768D59'
# TEST_APP_KEY = 'CF859FF521D73AA88EAD95197BC26420' # dgk
# TEST_APP_KEY = 'F65D35E18BF01D5D162C4294E8047CD4'  # nds
TEST_APP_KEY = 'ED1345ECD032D8D486502CB40A37736C'  # hfs

TEST_DEVICES = [
    {
        'device_id': 'DEVICE_ID_00',
        'vendor_id': 'VERDER_ID',
        'model': 'MODEL',
        'type': 'IPC',
        'name': 'NAME_00',
        'location': [0.0, 0.0],
        'location_name': 'ln_01',
    },
    {
        'device_id': 'DEVICE_ID_01',
        'vendor_id': 'VERDER_ID',
        'model': 'MODEL',
        'type': 'IPC',
        'name': 'NAME_01',
        'location': [0.1, 0.1],
        'location_name': 'ln_02',
    },
]

DEVICE_STATE = {
    'washing': False,
    'making_water': True,
    'lack_water': False,
    'input_tds': 120,
    'input_temperture': 25.6,
    'output_tds': 9,
    'output_temperture': 23.8,
    'filter_cartridges': [
        {
            'type': 'fc_type',
            'remaining': '30/120',
            'power_on_time': 1490973802,
            'running_time': 3600,
        },
        {
            'type': 'fc_type_2',
            'remaining': '40/120',
            'power_on_time': 1490973802,
            'running_time': 3600,
        },
    ]
}

DEVICE_STATE_UPDATE_ARRAY_ELEMENT = {
    'type': 'fc_type_3',
    'remaining': '20/120',
    'power_on_time': 1490978976,
    'running_time': 3600,
}

DEVICE_SERVICE_NAME = 'test_device_name'
DEVICE_SERVICE_REQUEST = {
    'recharge_days': 10,
}
